package cn.iocoder.moyun.module.curd.controller.admin.stringtext.vo.stringtext;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 用户分页 Request VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StringTextRespVO {
    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("用户ID")
    private Long id;

    @Schema(description = "合并后的业务字段", requiredMode = Schema.RequiredMode.REQUIRED, example = "{\"username\":\"admin\",\"nickname\":\"管理员\"}")
    @ExcelProperty("用户信息")
    private String text;

    @Schema(description = "最后登录IP", example = "192.168.1.1")
    @ExcelProperty("最后登录IP")
    private String loginIp;

    @Schema(description = "最后登录时间", example = "2023-01-01 12:00:00")
    @ExcelProperty("最后登录时间")
    private LocalDateTime loginDate;

    @Schema(description = "创建者", example = "system")
    private String creator;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "2023-01-01 10:00:00")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新者", example = "admin")
    private String updater;

    @Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "2023-01-01 11:00:00")
    @ExcelProperty("更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "是否删除", requiredMode = Schema.RequiredMode.REQUIRED, example = "false")
    private Boolean deleted;

    @Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long tenantId;
}
